package monster.com.cvh.bean;

import java.util.Objects;

/**
 * @author: pengguanming
 * @data: 2018/4/23
 * @function:求职意向Bean
 */
public class OccupationIntentBean implements Cloneable {

    /**
     * code : 1
     * data : {"industry":"test","position":"test","salary":"test","work_city":"test","work_type":"实习"}
     * msg : ok
     */

    private int code;
    private DataBean data;
    private String msg;

    @Override
    public Object clone() {
        OccupationIntentBean occupationIntentBean = null;
        try {
            occupationIntentBean = (OccupationIntentBean) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        occupationIntentBean.data=(DataBean)data.clone();
        return occupationIntentBean;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean implements Cloneable {
        /**
         * industry : test
         * position : test
         * salary : test
         * work_city : test
         * work_type : 实习
         */

        private String industry;
        private String position;
        private String salary;
        private String work_city;
        private String work_type;

        @Override
        public Object clone() {
            DataBean dataBean = null;
            try {
                dataBean = (DataBean) super.clone();
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            }
            return dataBean;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof DataBean)) return false;
            DataBean dataBean = (DataBean) o;
            return Objects.equals(getIndustry(), dataBean.getIndustry()) &&
                    Objects.equals(getPosition(), dataBean.getPosition()) &&
                    Objects.equals(getSalary(), dataBean.getSalary()) &&
                    Objects.equals(getWork_city(), dataBean.getWork_city()) &&
                    Objects.equals(getWork_type(), dataBean.getWork_type());
        }

        @Override
        public int hashCode() {

            return Objects.hash(getIndustry(), getPosition(), getSalary(), getWork_city(), getWork_type());
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "industry='" + industry + '\'' +
                    ", position='" + position + '\'' +
                    ", salary='" + salary + '\'' +
                    ", work_city='" + work_city + '\'' +
                    ", work_type='" + work_type + '\'' +
                    '}';
        }

        public String getIndustry() {
            return industry;
        }

        public void setIndustry(String industry) {
            this.industry = industry;
        }

        public String getPosition() {
            return position;
        }

        public void setPosition(String position) {
            this.position = position;
        }

        public String getSalary() {
            return salary;
        }

        public void setSalary(String salary) {
            this.salary = salary;
        }

        public String getWork_city() {
            return work_city;
        }

        public void setWork_city(String work_city) {
            this.work_city = work_city;
        }

        public String getWork_type() {
            return work_type;
        }

        public void setWork_type(String work_type) {
            this.work_type = work_type;
        }
    }
}
